<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="decorator" content="default" />
<title>角色管理</title>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/role">角色列表</a></li>
		<%-- <shiro:hasPermission name="sys:role:edit"> --%>
			<li><a href="${ctx}/sys/role/form">角色添加</a></li>
		<%-- </shiro:hasPermission> --%>
	</ul>
	<common:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<tr>
			<th>角色名称</th>
			<th>角色描述</th>
			<th>状态</th>
			<th>备注</th>
			<%-- <shiro:hasPermission name="sys:role:edit"> --%>
				<th>操作</th>
			<%-- </shiro:hasPermission> --%>
		</tr>
		<c:forEach items="${list}" var="role">
			<tr>
				<td><a href="${ctx}/sys/role/form?id=${role.id}">${role.name}</a></td>
				<td>${role.description}</td>
				<td>${fns:getDictLabel(role.status, 'role_status', '无')}</td>
				<td>${role.remarks}</td>
				<%-- <shiro:hasPermission name="sys:role:edit"> --%>
					<td><a href="${ctx}/sys/role/form?id=${role.id}">修改</a>
						<a onclick="return confirmx('确认要删除该角色吗？', this.href)"
						href="${ctx}/sys/role/delete?id=${role.id}">删除</a></td>
				<%-- </shiro:hasPermission> --%>
			</tr>
		</c:forEach>
	</table>
</body>
</html>